x=eval(input("请输入本月收入"))
g=x-5000
if g<=0:
    t=0
elif 0<g<=1500:
    t=g*0.03
elif 1500<g<=4500:
    t=(g-1500)*0.10+45
elif 4500<g<=9000:
    t=(g-4500)*0.20+345
elif 9000<g<=35000:
    t=(g-9000)*0.25+1245
elif 35000<g<=55000:
    t=(g-35000)*0.30+7745
elif 55000<g<=80000:
    t=(g-55000)*0.35+13745
elif 80000<g:
    t=(g-80000)*0.45+22495
print("本月实际个人需要交的税：{}元".format(t))